package com.ybkj.daijia.server.service;

import com.ybkj.daijia.page.Page;
import com.ybkj.daijia.server.model.RentInsurance;
import java.util.Map;


/**
 * @author Shine
 */
public interface RentInsuranceService {

    public Map<String, Object> insertInsurance(Long carId,
        String company,
        String insuranceNo,
        String insuranceType,
        Double money,
        Integer validDate,
        Integer invalidDate) throws Exception;

    public RentInsurance findInsuranceById(Long id);

    public Map<String, Object> deleteInsuranceByCarId(Long carId);

    public Map<String, Object> updateInsurance(
        String company,
        String insuranceNo,
        String insuranceType,
        Double money,
        Integer validDate,
        Integer invalidDate) throws Exception;

    public Page<RentInsurance> findInsuranceByCarId(Integer page, Integer rows, Long carId);


}
